# -*- encoding:utf-8 -*-
# !/usr/bin/env python
'''
    python-0806-03.py
    ======================
    @descript: 面向对象
    @copyright:nnz
    @author:dln
    @date: 2021/8/9 9:43
    @version:v1.0
'''
#面向过程思想
def open():
    print('第一步打开冰箱门')
def put():
    print('第二步把大象放入冰箱')
def close():
    print('第三步关闭冰箱门')
open()
put()
close()
print('*'*60)

#面向对象思想
class daxiang:
 def into(self):
    print('大象放入冰箱')
    pass
class bingxiang:
    def open(self):
        print('打开冰箱门')
        pass
    def close(self):
        print('关闭冰箱门')
        pass
v_daxiang=daxiang()       #对象通过环境变量调用
v_bingxiang=bingxiang()
v_bingxiang.open()       #行为
v_daxiang.into()
v_bingxiang.close()




